#import "SMRNaturalLanguageDateFormatter.h"


#pragma mark -
@implementation SMRNaturalLanguageDateFormatter

-(BOOL)getObjectValue:(id *)anObject forString:(NSString *)string errorDescription:(NSString **)error {
	if (!string || [string length] == 0)
		return NO;
	BOOL superResult = [super getObjectValue:anObject forString:string errorDescription:error];
	if (superResult)
		return superResult;
	NSDate *naturalLanguageDate = [NSDate dateWithNaturalLanguageString:string];
	if (!naturalLanguageDate) 
		return NO;
	*anObject = naturalLanguageDate;
	return YES;
}


@end
